package com.zengqingfa.designpattern.create.factory.abstractf;

/**
 *
 * @fileName: Client
 * @author: zengqf3
 * @date: 2021-4-21 16:36
 * @description:
 */
public class Client {

    public static void main(String[] args) {
        //获取单个产品族
        ConcreteProductSingleFactory factory1 = new ConcreteProductSingleFactory();
        Product1 product1 = factory1.createProduct1();
        Product2 product2 = factory1.createProduct2();
        //获取双产品族
        ConcreteProductPairFactory factory2 = new ConcreteProductPairFactory();
        Product1 product3 = factory2.createProduct1();
        Product2 product4 = factory2.createProduct2();
    }
}
